package com.chixing.service;


import com.chixing.pojo.Myorder;
import com.chixing.util.ServerResponse;

import java.util.Date;

public interface MyorderService {
    //根据订单id查询单个订单
    public ServerResponse getByOrderId(Integer orderId);

    //根据订单No查询单个订单
    public ServerResponse getByOrderNo(String orderNo);

    //根据订单状态查询某个客户的订单
    public ServerResponse getByCustId(Integer custId,Integer myorderStatus);

    //创建订单
    public Myorder createOrder(String custName, Long custTel, String travelName, Integer itineraryId, Integer audltNum, Integer childNum, Date myorderDate , Date myorderStartDate, Float myorderPrice);

    //根据订单编号更新订单
    public boolean updateByMyorderNo(String orderNo);

    //根据订单id更新
    public boolean updateByMyorderId(Integer orderId,Integer orderStatus);

    //生成流水
    public boolean createFlow(String myorderNo);

    //删除订单
    public boolean deleteMyorder(String myorderNo);

    //取消订单
    public boolean cancelMyorder(String myorderNo);

    //根据订单日期计算票数
    public ServerResponse getDayTickets(Date date,Integer sightId);
    //添加订单评论
    public boolean addMyorderReview(String myorderNo,String content);
    //根据订单No查询单个订单
    public Myorder getMyOrder(String orderNo);
}
